package cn.com.jrr.core.service;

import cn.com.jrr.core.dao.impl.BaseDaoImpl;
import cn.com.jrr.core.model.School;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SchoolService {
	@Resource
    private BaseDaoImpl<School> baseDaoImpl;
	public List<School> list(){
		return baseDaoImpl.findBySql("select * from school", School.class);
	}
}
